]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell/window-tracker: Exclude screen recorder window
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 14 Sep 2023 16:47:32 +0000 (18:47 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 16 Sep 2023 09:40:58 +0000 (11:40 +0200)
The pipeline contains a GST plugin that pops up an unclosable
zero-sized window.

Unfortunately we did not manage to come up with a proper fix
in time, so for now explicitly exclude it from app tracking.

This does not address all issues (it still prevents the
window's workspace from getting removed, even when it appears
empty), but at least it avoids the most confusing effect by
preventing the "app" from showing up in dash, alt-tab etc.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6763

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2956>

src/shell-window-tracker.c

index 6a7240e47438fe3e844005d7ab281786b25392b5..8a486fac7608026e282e49328d4696f1b8d210db 100644 (file)
@@ -412,6 +412,13 @@ get_app_for_window (ShellWindowTracker    *tracker,
   if (meta_window_is_remote (window))
     return _shell_app_new_for_window (window);
 
+  /* HACK: Exclude screen recorder from tracking until
+   * we implement a proper fix
+   */
+  if (meta_window_get_wm_class (window) == NULL &&
+      g_strcmp0 (meta_window_get_title (window), "OpenGL Renderer") == 0)
+    return NULL;
+
   /* Check if the app's WM_CLASS specifies an app; this is
    * canonical if it does.
    */